{% load static %}
<!DOCTYPE html>
<html>
<head>
    <title>{{ post.title }}</title>
    <link rel="stylesheet" href="{% static 'css/style.css' %}">
</head>
<body>
    <header>
        <div class="container">
            <div id="branding">
                <h1><a href="{% url 'blog:post_list' %}">我的博客</a></h1>
            </div>
            <nav>
                <ul>
                    <li><a href="{% url 'blog:post_list' %}">首页</a></li>
                    <li><a href="/admin">管理</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <div class="container">
        <article class="article-detail">
            <h1>{{ post.title }}</h1>
            <div class="meta">
                <span>作者: {{ post.author.username }}</span> | 
                <span>发布时间: {{ post.created_at|date:"Y年m月d日 H:i" }}</span> |
                <span>更新于: {{ post.updated_at|date:"Y年m月d日 H:i" }}</span>
            </div>
            <div class="content">
                {{ post.content|linebreaks }}
            </div>
        </article>
        
        <div class="navigation">
            <a href="{% url 'blog:post_list' %}" class="btn">返回文章列表</a>
        </div>
    </div>

    <footer>
        <p>我的博客 &copy; 2025</p>
    </footer>
</body>
</html>